﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Skutl.is - Nýskráning
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="TextContent">
        <h2>Nýskráning</h2>
        <%--<p>
        Use the form below to create a new account. 
    </p>--%>
        <%-- <p>
        Passwords are required to be a minimum of  <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
       
    </p>--%>
        <%= Html.ValidationSummary("Nýskráning tókst ekki. Vinsamlegast leiðréttið villur og reynið aftur.")%>
        <% using (Html.BeginForm())
           { %>
        <div>
            <table width="100%" cellpadding="10">
                <tr>
                    <td width="50%" valign="top">
                    <p class="big">
                        <label for="firstname">
                            Nafn:</label><br />
                        <%= Html.TextBox("firstname") %><br />
                        <%= Html.ValidationMessage("firstname") %>
                        
                        <label for="lastname">
                            Eftirnafn:</label><br />
                        <%= Html.TextBox("lastname") %><br />
                        <%= Html.ValidationMessage("lastname") %>
                        
                        <label for="ssn">
                            Kennitala:</label><br />
                        <%= Html.TextBox("ssn") %><br />
                        <%= Html.ValidationMessage("ssn") %>
                        
                        <label for="email">
                            Tölvupóstur:</label><br />
                        <%= Html.TextBox("email") %><br />
                        <%= Html.ValidationMessage("email") %>
                        
                        <label for="username">
                            Notendanafn:</label><br />
                        <%= Html.TextBox("username") %><br />
                        <%= Html.ValidationMessage("username") %>
                        
                        <label for="password">
                            Lykilorð:</label><br />
                        <%= Html.Password("password") %><br />
                        <%= Html.ValidationMessage("password") %>
                        
                        <label for="confirmPassword">
                            Staðfesta lykilorð:</label><br />
                        <%= Html.Password("confirmPassword") %><br />
                        <%= Html.ValidationMessage("confirmPassword") %>
                      </p>  
                    </td>
                    <td width="50%" valign="top">
                    <p class="big">
                        <label for="address">
                            Heimilisfang:</label><br />
                        <%= Html.TextBox("address") %><br />
                        <%= Html.ValidationMessage("address") %>
                        
                        <label for="zipcode">
                            Póstnúmer:</label><br />
                        <%= Html.DropDownList("ZipCode", ViewData["zipcodes"] as SelectList)%><br />
                        <%= Html.ValidationMessage("zipcode") %>
                        
<%--                        <label for="town">
                            Staður:</label><br />
                        <%= Html.TextBox("town", "Á að koma sjálfkrafa") %><br />
                        <%= Html.ValidationMessage("town") %>
--%>                        
                        <label for="phone">
                            Heimasími:</label><br />
                        <%= Html.TextBox("phone") %><br />
                        <%= Html.ValidationMessage("phone") %>
                        
                        <label for="mobile">
                            Farsími:</label><br />
                        <%= Html.TextBox("mobile") %><br />
                        <%= Html.ValidationMessage("mobile") %>
                        
                        <label for="gender">Kyn:</label><br />
                        <select id="gender" name="gender">
                            <option value="" selected="selected">Veldu...</option>
                            <option value="M">Karl</option>
                            <option value="F">Kona</option>
                        </select>
                        
<%--                        <asp:DropDownList ID="gender" runat="server">
                            <asp:ListItem Selected="True" value="Null">Veldu...</asp:ListItem>
                            <asp:ListItem Value="M">Karlmaður</asp:ListItem>
                            <asp:ListItem Value="F">Kvenmaður</asp:ListItem>
                        </asp:DropDownList>
--%>                        
                        <%--Athuga líka (dæmi úr nerddinner):
                        <%= Html.DropDownList("gender", ViewData["gender"] as SelectList) %>--%>
                        
                        &nbsp;
                        <p>
                            <input type="submit" value="Skrá" />
                            <%--<input type="" value="Hætta" /> --%>
                            <%--Það er óþarfi að hafa hætta takka. Notandi velur bara annan link.--%>
                        </p>
                    </p>
                    </td>
                    
                </tr>
            </table>
            <%--<div title="mapDiv">
            <% Html.RenderPartial("Map", new HitchHikersGuideToTheGalaxy.Models.TourDest{ }); %>
            </div>--%>
         </div>
        <% } %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
    <% if (ViewData["UpcomingTours"] != null)
       {
           Html.RenderPartial("UpcomingToursPartial", ViewData["UpcomingTours"]);
       }
         %>
</asp:Content>